package com.xu.commons.exception;

import com.xu.commons.model.ResultCode;


public class ValidateException  extends ApplicationException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5309789192432818855L;
	private static final String MESSAGE="验证异常";
	protected int code = ResultCode.VALIDATE_ERROR;
	
	public ValidateException(){
		super(MESSAGE);
	}
	public ValidateException(String message){
		super(message);
	}
	
	public ValidateException(int code,String message){
		super(message);
		this.code=code;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	
	
}
